package com.itheima;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @author zhangbaiyan
 * @date 2024-09-17 15:26
 * @description:
 * @version:
 */
public class fangfayinyong {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"1","2","3","4","5");

        list.stream().map(Integer::parseInt).forEach(System.out::println);
    }
}
